import request from './request.js'

const order = {
  // 获取购车订单列表
  getMyOrderBuyCarAllList(data) {
    return request.post('/api/client/core/OrderBuyCar/GetMyOrderBuyCarList', data)
  },
  // 获取购车订单详情
  getOrderBuyCarDetailsById(data) {
    return request.post('/api/client/core/OrderBuyCar/GetOrderBuyCarDetailsById', data)
  },

  // 获取补充资料需要填报的数据项
  getOrderSupplementaryData(data) {
    return request.post('/api/client/core/OrderPersonalData/GetOrderSupplementaryData', data)
  },

  // 获取预约到店列表
  getCarBookPageList(data) {
    return request.post('/api/client/core/CarBook/GetCarBookPageList', data)
  },
  // 取消预约到店列表
  cancelCarBook(data) {
    return request.put('/api/client/core/CarBook/CancelCarBook', data)
  },
  // 预约详情
  GetCarBookDetailInfo(data) {
    return request.post('/api/client/core/CarBook/GetCarBookDetailInfo', data)
  },
  // 寻车订单列表(全部)
  getMyCarFindList(data) {
    return request.post('/api/client/core/CarFind/GetMyCarFindList', data)
  },
  // 寻车订单列表(待确认)
  getMyCarFindNotQuoteList(data) {
    return request.post('/api/client/core/CarFind/GetMyCarFindNotQuoteList', data)
  },
  // 寻车订单列表(待报价)
  getMyCarFindNotCertainList(data) {
    return request.post('/api/client/core/CarFind/GetMyCarFindNotCertainList', data)
  },
  // 寻车订单列表(已完成)
  getMyCarFindFinishedList(data) {
    return request.post('/api/client/core/CarFind/GetMyCarFindFinishedList', data)
  },
  // 寻车订单详情
  GetCarFindDetailsById(data) {
    return request.post('/api/client/core/CarFind/GetCarFindDetailsById', data)
  },
  // 寻车订单详情——确认报价
  SetQuoted(data) {
    return request.post('/api/client/core/CarFind/SetQuoted', data)
  },
  // 推广订单列表
  getShareOrderPageList(data) {
    return request.post('/api/client/core/ShareOrder/GetShareOrderPageList', data)
  },
  // 推广订单列表详情
  getShareOrderDetailInfo(data) {
    return request.post('/api/client/core/ShareOrder/GetShareOrderDetailInfo', data)
  },
  // 推广订单上传发票
  uploadInvoice(data) {
    return request.post('/api/client/core/ShareOrder/UploadInvoice', data)
  },
  // 购车测算
  AddCarCalculate(data) {
    return request.post('/api/client/core/CarCalculate/AddCarCalculate', data)
  },
  // 购车测算---获取验证码
  SendVerficationCodes(data) {
    return request.post('/api/client/core/CarCalculate/SendVerficationCode', data)
  },
  // 服务商上传发票
  ServiceUploadInvoice(data) {
    return request.post('/api/client/core/ShareOrder/ServiceUploadInvoice', data)
  },
  // 推广订单详情
  GetShareOrderDetailInfo(data) {
    return request.post('/api/client/core/ShareOrder/GetShareOrderDetailInfo', data)
  },
  // 添加购车申请补充资料
  AddOtherData(data) {
    return request.post('/api/client/core/OrderPersonalData/AddOtherData', data)
  },
  // 确认交车
  ConfirmGetCar(data) {
    return request.post('/api/client/core/OrderBuyCar/ConfirmGetCar', data)
  },
  // 好车推荐
  GetCarHotList(data) {
    return request.post('/api/client/core/GoodsCarSource/GetCarHotList', data)
  },

  //api/client/core/OrderPersonalData/GetOrderPersonalDataDetails
  getOrderPersonal(data) {
    return request.post('/api/client/core/OrderPersonalData/GetOrderPersonalDataDetails', data)
  }
}

export default order
